package com.wine.exam.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;

import java.io.Serializable;


@Getter
@Setter
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("exam_paper_question")
public class PaperQuestion implements Serializable {

    private static final long serialVersionUID = 134L;
    /**
     * 试卷表主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
//    @TableId(type = IdType.AUTO, value = "paper_id")
    private Long paperId;
    /**
     * 题目主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long questionId;
}
